package com.boot.framework.event;

import jakarta.annotation.Resource;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class OperateLogEventPub {
    @Resource
    private ApplicationEventPublisher applicationEventPublisher;

    /**
     *  事件发布方法
      */
    public void pushListener(Map<String,Object> map) {
        applicationEventPublisher.publishEvent(new OperateLogEvent(this,map));
    }

}
